package com.yunji.storage.bo;

import com.yunji.base.enums.AuditStatus;
import com.yunji.common.base.IEventJbpm;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class StorageUpdateAuditBO implements IEventJbpm {

    private Long businessId;
    private Integer auditStatus;
    private Long auditId;
    private String auditName;
    private Long auditBelongId;
    private String auditBelongName;
    private Date auditTime;

    @Override
    public Long getId() {
        return this.getBusinessId();
    }

    @Override
    public Integer getNewStatus() {
        return this.getAuditStatus();
    }

    @Override
    public Integer getEventType() {
        return 0;
    }

    @Override
    public String getNewStatusName() {
        return AuditStatus.get(this.getAuditStatus());
    }
}
